package in.muton.edushare.newentities.upgraded;

import java.util.HashMap;

import org.apache.wicket.markup.html.form.IChoiceRenderer;

public class RoleRenderer implements IChoiceRenderer<String> {
	private static final long serialVersionUID = -8753653208978451154L;
	private HashMap<String, Integer> map;
	
	public RoleRenderer(HashMap<String, Integer> map){
		this.map = map;
	}

	public Object getDisplayValue(String arg0) {
		return arg0;
	}

	public String getIdValue(String arg0, int arg1) {
		return map.get(arg0).toString();
	}

}
